
#ifndef __SPOT_H__
#define __SPOT_H__

#include "TextParser.h"

class CSpot
{
public:
    static const int MAX_NPC_NUM = 9;
    static const int MAX_EXIT_NUM = 8;
    static const int MAX_GOODS_NUM = 10;

	char szName[24];	
	char szDetail[256];
	short nNpcNum;					//npc的个数
	short nNpcs[ MAX_NPC_NUM ];		//最多有10个npc	
	short nExitNum;					//出口数目
	short nExits[ MAX_EXIT_NUM ];	//最多有5个出口	
	short nGoodsNum;				//可以捡的东西
	short nGoods[ MAX_GOODS_NUM ];

	short nEnterScript;		//进入时触发的脚本
	short nLeaveScript;		//离开时触发的脚本

public:
    void ShowName();
    void ShowDetail();
    bool Load(CTextParser &file);
};

#endif
